<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<jsp:include page="/usr/themes/default/header.jsp"></jsp:include>

<!-- start #main-->
<div class="col-mb-12 col-8" id="main" role="main">
	<article class="post" itemscope
		itemtype="http://schema.org/BlogPosting">
		<h2 class="post-title" itemprop="name headline">
			<a itemtype="url" href="${options.siteUrl}/post/${post['cid']}">${post['title']}</a>
		</h2>
		<ul class="post-meta">
			<li itemprop="author" itemscope itemtype="http://schema.org/Person">作者:
				<a itemprop="name"
				href="${options.siteUrl}/author/${post['author']['uid']}"
				rel="author">${post['author']['screenName']}</a>
			</li>
			<li>时间: <time datetime="${post['created']}"
					itemprop="datePublished">${post['created']}</time>
			</li>
			<li>分类: <c:forEach var="category" items="${post['categories']}">
					<span><a
						href="${options.siteUrl}/category/${category['slug']}">${category['name']}</a>|</span>
				</c:forEach>
			</li>
			<li itemprop="interactionCount"><a itemprop="discussionUrl"
				href="${options.siteUrl}/post/${post['cid']}#comments">${post['commentsNum']}
					评论</a></li>
		</ul>
		<div class="post-content" itemprop="articleBody">
			${post['text']}</div>
	</article>

	<%-- <ul class="post-near">
		<li>上一篇: <c:if test="${prePost!=null}">
				<a href="${basePath}/archives/post/${prePost.id}"
					title="${prePost.title}">${prePost.title}</a>
			</c:if> <c:if test="${prePost==null}">
		没有了
		</c:if>
		</li>
		<li>下一篇: <c:if test="${nextPost!=null}">
				<a href="${basePath}/archives/post/${nextPost.id}"
					title="${nextPost.title}">${nextPost.title}</a>
			</c:if> <c:if test="${nextPost==null}">
		没有了
		</c:if>
		</li>
	</ul> --%>

	<jsp:include page="/usr/themes/default/comments.jsp"></jsp:include>
</div>
<!-- end #main-->

<jsp:include page="/usr/themes/default/sidebar.jsp"></jsp:include>
<jsp:include page="/usr/themes/default/footer.jsp"></jsp:include>


